<template>
    <div id="app">
        <router-view></router-view>
    </div>
</template>

<script>

    import typeApi from "@/api/getstore";
    export default {
        created(){
            // 初始化时获取所有的设备类型等等。。。。
              typeApi.getAllEquipmentType().then((response) => {
                this.$store.commit('INCREMENTTYPE',response.data.data[0].typeChildName)
                this.$store.commit('INCREMENTALARM',response.data.data[1].typeChildName)
                this.$store.commit('INCREMENTLINK',response.data.data[2].typeChildName)
                this.$store.commit('INCREMENTADDRESS',response.data.data[3].typeChildName)
            })
        }
    }
</script>

<style>
    @import "./assets/css/main.css";
    @import "./assets/css/color-dark.css"; /*深色主题*/
    /*@import "./assets/css/theme-green/color-green.css";   浅绿色主题*/


    /* 解决element ui表头错位问题 */
    body .el-table th.gutter {
        display: table-cell !important;
    }

    body .el-table colgroup.gutter {
        display: table-cell !important;
    }
</style>